-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V1] Add KV cache group dimension to block table #12086
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: Chen Zhang <[email protected]>
@@ -70,9 +70,7 @@ def __init__( | |||
|
|||
self.is_multimodal_model = model_config.is_multimodal_model | |||
self.sliding_window = model_config.get_sliding_window() | |||
self.block_size = cache_config.block_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get block_size
from the KVCacheSpec of each group instead.
Signed-off-by: Chen Zhang <[email protected]>
This pull request has merge conflicts that must be resolved before it can be |
…k_table Signed-off-by: Chen Zhang <[email protected]>
This PR adds the KV cache group (
KVCacheConfig.groups
introduced by #11960) dimension to block table, to prepare for supporting allocating different blocks to different layers.It is splitted from #11938 and is a preparation for #11382
Benchmark result ($\Delta$ is compared with main branch df450aa, shows the minimum time of 3 runs, H100):
commands:
It shows that adding the group dimension does not introduce much overhead.